﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.NetworkInformation;

namespace AnchoDeBanda
{
    public class AnchoDeBandaServidor
    {
        public double AnchoDeBandaTotal { get; set; }
        public double AnchoDeBandaXCliente { get; set; }
        public Dictionary<string, double> AnchoDeBandaClientes { get; set; }

        public double AnchoDeBandaDisponible
        { 
            get
            {
                return AnchoDeBandaTotal - AnchoDeBandaConsumido;
            } 
        }

        public double AnchoDeBandaConsumido
        { 
            get
            {
                return AnchoDeBandaClientes.Values.Sum();
            } 
        }

        public AnchoDeBandaServidor()
        {
            this.AnchoDeBandaClientes = new Dictionary<string, double>();
        }
    }
}
